﻿#define _CRT_SECURE_NO_WARNINGS 1


//编程初学者入门训练第五十三题
//BC55 简单计算器
//https://www.nowcoder.com/practice/b8f770674ba7468bb0a0efcc2aa3a239?tpId=107&tqId=33336&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

void Mul(double n1, double n2) {
    printf("%.4lf*%.4lf=%.4lf", n1, n2, n1 * n2);
}

void Sub(double n1, double n2) {
    printf("%.4lf-%.4lf=%.4lf", n1, n2, n1 - n2);
}

void Div(double n1, double n2) {
    if (n2 == 0.0) {
        printf("Wrong!Division by zero!");
    }
    else {
        printf("%.4lf/%.4lf=%.4lf", n1, n2, n1 / n2);
    }
}

void Add(double n1, double n2) {
    printf("%.4lf+%.4lf=%.4lf", n1, n2, n1 + n2);
}

int main() {
    double num1 = 0.0;
    double num2 = 0.0;
    char ch;
    scanf("%lf%c%lf", &num1, &ch, &num2);
    switch (ch) {
    case '+':
        Add(num1, num2);
        break;
    case '-':
        Sub(num1, num2);
        break;
    case '*':
        Mul(num1, num2);
        break;
    case '/':
        Div(num1, num2);
        break;
    default:
        printf("Invalid operation!\n");
    }

    return 0;
}